import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Fileinputstream001 {
    public static void main(String[] args) throws IOException {
        FileInputStream yt = new FileInputStream("F://AJAVA//edc.jpg");
        FileOutputStream fzt = new FileOutputStream("src//edc001.jpg");
        byte[]bts=new byte[1024];
        int by;
        while ((by= yt.read(bts))!=-1){
            fzt.write(bts ,0,by);
        }
        yt.close();
        fzt.close();
    }
}
